import { CHANGE_INPUT, ADD_ITEM, DELETE_ITEM } from "../store/actionTypes";

// input输入
export const changeInputAction = (value) => ({
    type: CHANGE_INPUT,
    value
});

// 提交
export const addItemAction = () => ({
    type: ADD_ITEM
});

// 删除
export const deleteItemAction = (index) => ({
    type: DELETE_ITEM,
    index
});